﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserManage.aspx.cs" Inherits="Admin_User_UserManage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>管理员信息</title>
    <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="UserID">
                <Columns>
                     <asp:BoundField DataField="UserName" HeaderText="登录名" />
                    <asp:BoundField DataField="NickName" HeaderText="账户名" />
                    <asp:BoundField DataField="MobilePhone" HeaderText="手机" />
                    <asp:BoundField DataField="CreateTime" HeaderText="注册时间" />  
                                  
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <%#Eval("Status").ToString() == "1" ? "正常" : "禁用"%>
                            </ItemTemplate>
                        </asp:TemplateField>

                     <asp:TemplateField HeaderText="编辑">
                        <ItemTemplate>
                           <asp:HyperLink ID="btnEdit" runat="server" NavigateUrl='<%# "UserManageEdit.aspx?UserID="+Eval("UserID")%>'><%#Eval("UserName").ToString() == "admin" ? "" : "编辑" %></asp:HyperLink>&nbsp;&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField> 

                </Columns>
            </asp:GridView> 
        </div>
    </form>
</body>
</html>
